package com.sltx.service.impl;


import com.sltx.dao.aaa.ModelMapper;
import com.sltx.service.ModelService;
import com.sltx.util.PageData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 分析对象管理
 */
@Service
public class ModelServiceImpl implements ModelService {

    @Autowired
    private ModelMapper modelMapper;

    @Override
    public List<Map<String, Object>> getModel(PageData pd) {
        List<Map<String, Object>> result = modelMapper.getModel(pd);
        return result;
    }

    @Override
    public int deleteModel(PageData pd) {
        int result = modelMapper.deleteModel(pd);
        return result;
    }

    @Override
    public int addModel(PageData pd) {
        int result = modelMapper.addModel(pd);
        return result;
    }


}
